import request from '@/utils/request'

export const getNovelList = (title, novelKindId, isEnd, author,page,size) => {
    return request.get('/admin/novel/list?title='+title+'&novelKindId='+novelKindId+'&isEnd='+isEnd+'&author='+author+'&page='+page+'&size='+size);
}

export const getNovelKindList = () => {
    return request.get('/admin/novel/getNovelKindList');
}

export const addNovel = (form) => {
    return request.post('/admin/novel/add',form);
}